package com.zut.fitness.service.impl;


import com.zut.fitness.pojo.FitnessMembershipCard;
import com.zut.fitness.service.IFitnessMembershipCardService;
import com.zut.fitness.mapper.FitnessMembershipCardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员卡Service业务层处理
 * 
 * @author admin
 * @date 2025-01-03
 */
@Service
public class FitnessMembershipCardServiceImpl implements IFitnessMembershipCardService
{
    @Autowired
    private FitnessMembershipCardMapper fitnessMembershipCardMapper;


    @Override
    public FitnessMembershipCard selectFitnessMembershipCardById(Long id) {
        return fitnessMembershipCardMapper.selectFitnessMembershipCardById(id);
    }

    @Override
    public List<FitnessMembershipCard> selectFitnessMembershipCardList() {
        FitnessMembershipCard fitnessMembershipCard = new FitnessMembershipCard();
        fitnessMembershipCard.setStatus("0");
        return fitnessMembershipCardMapper.selectFitnessMembershipCardList(fitnessMembershipCard);
    }
}
